//
//  FriendServers.m
//  RPay
//
//  Created by hzy on 2017/10/29.
//  Copyright © 2017年 Charlie. All rights reserved.
//

#import "FriendServers.h"

@implementation FriendServers
+ (FriendServers *)sharedInstance
{
    static id sharedInstance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        sharedInstance = [[self alloc] init];
    });
    return sharedInstance;
}

-(void)getFriendListWith:(NSString * )path
            headerParams:(NSDictionary *)headerParams
              formParams:(id)formParams
                progress:(TMRequestProgressBlock)progressBlock
                 success:(TMRequestSuccessBlock)successBlock
                 failure:(TMRequestFailureBlock)failureBlock{


    [self GET:path headerParams:headerParams queryParams:nil formParams:formParams withToken:NO model:nil progress:progressBlock success:successBlock failure:failureBlock];
    

}
-(void)PostNetworkWith:(NSString * )path
      headerParams:(NSDictionary *)headerParams
        formParams:(id)formParams
          progress:(TMRequestProgressBlock)progressBlock
           success:(TMRequestSuccessBlock)successBlock
           failure:(TMRequestFailureBlock)failureBlock{

    [self POSTWithJSONRequestSerialized:path headerParams:headerParams queryParams:nil formParams:formParams withToken:NO model:nil progress:progressBlock success:successBlock failure:failureBlock];
    

}
@end
